package com.ndp.fb.walle.business;


import com.ndp.fb.exception.BusinessException;
import com.ndp.fb.exception.CheckedException;
import com.ndp.fb.model.rdb.AudienceManager;
import com.ndp.fb.rdb.model.EntrustAccount;
import com.ndp.fb.rdb.model.FbUser;
import com.ndp.fb.rdb.model.Pager;
import com.ndp.fb.walle.model.bo.useraudience.result.PreviewUserAudienceResult;
import com.ndp.fb.walle.model.vo.useraudience.param.UserAudienceParam;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2014/10/23.
 */
public interface UserAudienceService {

    Integer previewUserAudiences(UserAudienceParam userAudienceParam,FbUser fbUser) throws BusinessException;
    
    String previewUserAudience(String targeting_spec,FbUser fbUser,Long accountId) throws BusinessException;

    PreviewUserAudienceResult searchPreviewUserAudienceResult(String cacheId) throws BusinessException;
    
    PreviewUserAudienceResult searchPreviewSimpleUserAudienceResult(String cacheId) throws BusinessException;

    List<EntrustAccount> findAccountsByWeFeedId(Long weFeedId);

    Map<String,Object> validateProductSetList(String ticket, Long weFeedId);
}
